import request from '@/utils/request'

// 查询内网导出列表
export function listExport(query) {
  return request({
    url: '/business/export/list',
    method: 'get',
    params: query
  })
}

// 查询内网导出详细
export function getExport(id) {
  return request({
    url: '/business/export/' + id,
    method: 'get'
  })
}

// 新增内网导出
export function addExport(data) {
  return request({
    url: '/business/export',
    method: 'post',
    data: data
  })
}

// 修改内网导出
export function updateExport(data) {
  return request({
    url: '/business/export',
    method: 'put',
    data: data
  })
}

// 删除内网导出
export function delExport(id) {
  return request({
    url: '/business/export/' + id,
    method: 'delete'
  })
}
// 发送至磁盘
export function sendToDisk(id) {
  return request({
    url: '/business/export/sendToDisk/' + id,
    method: 'post'
  })
}

// 导出内网导出
export function exportExport(query) {
  return request({
    url: '/business/export/export',
    method: 'get',
    params: query
  })
}